#pragma once

#include <iostream>
#include <unistd.h>

namespace TaskModule
{
    class Task
    {
    public:
        Task() {}
        Task(int a, int b)
            :_x(a), _y(b)
        {}
        void Excute()
        {
            sleep(1);
            _result = _x + _y;
        }
        int X() { return _x; }
        int Y() { return _y; }
        int Result() { return _result; }
        ~Task()
        {}
    private:
        int _x;
        int _y;
        int _result;
    };
}